const options = {
  // routes[0]必须为'/'
  routes: [
    {
      path: '/',
      redirect:'home'
    },
    {
      path: '/home',
      name: 'home',
      meta: {title: '首页'},
      component: () => import('@/views/home/index'),
    },
    {
      path: '/my',
      name: '我的',
      meta: {title: '我的'},
      component: () => import('@/views/my/index'),
    },
    {
      path: '/login',
      name: 'login',
      meta: {title: '首页'},
      component: () => import('@/views/base/Login'),
      needLogin: false
    },
    {
      path: '/*',
      name: '404',
      meta: {title: '首页'},
      component: () => import('@/views/base/404'),
      needLogin: false
    },
  ]
}
export default options;
